//
//  JackConstantAPI.h
//  JackProduct
//
//  Created by Pei on 15/11/6.
//  Copyright © 2015年 Xiaobo Pei. All rights reserved.
//

#ifndef JackConstantAPI_h
#define JackConstantAPI_h

//"http://202.127.25.114:8081/api/";
// "http://202.127.25.114:8083/soa/api/";
#define kAppHostProtocal @"http"
#define kAppHost @"202.127.25.114"
#define kAppHostPort @"8083"

#define kAppApi(api) [NSString stringWithFormat:@"%@://%@:%@/soa/api/%@", kAppHostProtocal, kAppHost, kAppHostPort, api]
#define kAppApiGetImage(api) [NSString stringWithFormat:@"%@://%@:%@/api/sqcp/user/getAvatar?userUid=%@", kAppHostProtocal, kAppHost, @"8081", api]

#define kAppGetHeaderImage(api) [NSString stringWithFormat:@"%@://%@:%@/soa/api/sqcp/core/getAd?code=%@", kAppHostProtocal, kAppHost, kAppHostPort, api]

//http://202.127.25.114:8081/api/sqcp/user/getAvatar?userUid=admin


//post
#define Login_API @"sqcp/user/login/"
#define Logout_API @"sqcp/user/logout/"

//上传检查单信息
#define Upload_Task @"sqcp/inspection/AddInspection/"
//确认检查
#define Sure_Task @"sqcp/inspection/ConfirmInspection/"
//公司级统计接口
#define Get_Statistics_Company @"sqcp/report/GetAnalysisDataList/"
//提交待整改的
#define Upload_DaiZhengGai @"sqcp/repairrecord/AddRepairRecord/"
//待审核 审核  拒绝操作
#define Get_AuditRepairRecord @"sqcp/repairrecord/AuditRepairRecord/"

//提交确认工序 就是关键工序上传
#define Upload_GuanJianGongXu @"sqcp/criticalactivity/Finished/"

//工序明细审阅  就是确认关键工序
#define Sure_GuanJianGongXu @"sqcp/criticalactivity/Confirm/"

//批量上传附件资源
#define Upload_File @"sqcp/resource/BatchCreate/"

//保存实体工程情况明细 就是实体情况上传
#define Upload_ShiTiQKCJ @"sqcp/entityproject/SaveEntityProject/"



//get
#define Get_UserInfo_API @"sqcp/User/GetUserInfoByToken?"
#define Get_All_Major_API @"sqcp/inspectitem/GetInspectProfessionList"

//创建检查单  选择检查人  获取所有机构
#define Get_AllOrgs  @"sqcp/org/GetAllOrgs"
//根据机构获取机构下的用户
//#define Get_AllOrgs_To_User @"sqcp/user/GetUserListByKeyWord?keyword=%@UserRole=%@&DeptCode=%@" //keyword=&UserRole=Inspect&DeptCode=YFZX"

//权限
#define User_Privilege @"sqcp/core/privilege?" //UserUid=%s";

//字典类型
#define Dictionary_Type_API @"sqcp/dictionary/Get?"

//待确认陪同列表
#define Get_AccompanyInspectionList @"sqcp/inspection/GetAccompanyInspectionList"

//确认陪同检查
#define Sure_ConfirmAccompany @"sqcp/inspection/ConfirmAccompany?"  //AccompanyID=%s";

//获取整改人列表  或者  根据机构获取机构下的用户
#define Get_UserListByKeyWord @"sqcp/user/GetUserListByKeyWord?"  //keyword=%s&UserRole=%s&DeptCode=%s";

#define Get_Check_Item_By_Major_API @"sqcp/inspectitem/GetInspectItemList?"  //根据专业获取检查项
#define Get_InspectItem_Detail_API @"sqcp/InspectItem/GetInspectItemDetail?" //根据检查项ID 获取检查项详情 InspectItemID={id}
#define Get_ToBeSure_Task_List @"sqcp/inspection/GetToBeConfirmedInspectionList" //根据用户UID获取待确认检查列表
#define Get_ToBeSure_Task_Detail @"sqcp/inspection/GetInspectionDetail?"///api/sqcp/inspection/GetInspectionDetail?InspectionID={id}  根据用户UID和检查单UID获取检查单明细信息
//获取待整改任务列表
#define Get_ToBeChange_Task_List @"sqcp/repairrecord/GetToBeRepairedInspectionList"
#define Get_ToBeChange_Task_Detail @"sqcp/repairrecord/GetToBeRepairedInspectionDetail?"//InspectionID={0}&InspectionItemID={1}
#define Get_ToBeChange_Task_CheckItem_Detail @"sqcp/repairrecord/GetRiskRepairRecordDetail?"//InspectionID={0}&RepairID={1}
//获取待审核整改任务列表
#define Get_ToBeReviewed_Task_List @"sqcp/repairrecord/GetPenddingAuditRepairRecordList"
#define Get_ToBeReviewed_Task_Detail @"sqcp/repairrecord/GetPenddingAuditRepairRecordDetail?"//InspectionID=%d&InspectionItemID=%d

//整改明细检查项审批列表
#define Get_GetRiskRepairRecordDetail @"sqcp/repairrecord/GetRiskRepairRecordDetail?"//InspectionID=%s&RepairID=%s"

//根据关键词获取用户UserID和UserName列表  就是检查人
#define Get_UserListByKeyWord @"sqcp/user/GetUserListByKeyWord?" //keyword={keyword}&UserRole={role}&DeptCode={code}

//公司选择
#define Get_Company_List @"sqcp/org/QueryOrgs?"  //UserID=%s
//项目列表
#define Get_Project_List @"sqcp/coreproject/GetProjectList?"   //orgCode=%s
//获取关键工序列表
#define Get_Important_Working_List @"sqcp/criticalactivity/GetCriticalActivityList?" //UserID=%@&projectId=%@&Keyword=%@&SGStatus=%@&Status=%@&pagesize=%d&pageindex=%d

//实体情况采集列表
#define Get_EntityProjectList @"sqcp/entityproject/GetEntityProjectList?"//UserID=%s&ProjectId=%s&Keyword=%s&PageIndex=%s";


//获取待确认工序的列表
#define Get_Sure_GuanJianGongXu @"sqcp/criticalactivity/GetToBeConfirmedCriticalActivity?" //UserID=%s&PageIndex=%s&PageSize=%s"






#endif /* JackConstantAPI_h */
